package com.zmn.plat.services.impl.channel;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.channel.ChannelLog;
import com.zmn.plat.model.entity.channel.ChannelLogQuery;
import com.zmn.plat.persistence.interfaces.channel.ChannelLogDAO;
import com.zmn.plat.services.interfaces.channel.ChannelLogService;

@Service
public class ChannelLogServiceImpl implements ChannelLogService {

    @Resource
    private ChannelLogDAO channelLogDAO;

    @Override
    public ChannelLog findByKey(Integer logId) {
        return channelLogDAO.findByKey(logId);
    }

    @Override
    public List<ChannelLog> listByChannelId(Integer channelId) {
        return channelLogDAO.listByChannelId(channelId);
    }

    @Override
    public List<ChannelLog> listByQuery(ChannelLogQuery query) {
        return channelLogDAO.listByQuery(query);
    }

    @Override
    public List<ChannelLog> listPageByQuery(ChannelLogQuery query) {
        return channelLogDAO.listPageByQuery(query);
    }

    @Override
    public Integer countByQuery(ChannelLogQuery query) {
        return channelLogDAO.countByQuery(query);
    }

    @Override
    public int update(ChannelLog record) {
        return channelLogDAO.update(record);
    }

    @Override
    public int insert(ChannelLog record) {
        return channelLogDAO.insert(record);
    }

    @Override
    public int deleteByKey(Integer logId) {
        return channelLogDAO.deleteByKey(logId);
    }
}
